/**
 * 订单查询对象类型
 */
export interface OrderQuery extends PageQuery {
  recvName?: string;
  status?: number;
  startTime?: string;
  endTime?: string;
}

/**
 * 订单物品查询对象类型
 */
export interface OrderItemQuery extends PageQuery {
  orderId: number;
  title?: string;
}

/**
 * 订单分页对象
 */
export interface OrderPageVO {
  id: number;
  recvName: string;
  recvPhone: string;
  recvProvince: string;
  recvCity: string;
  recvArea: string;
  recvAddress: string;
  status: number;
  totalPrice: number;
  payTime?: string;
  createdTime: string;
}

/**
 * 订单分页类型声明
 */
export type OrderPageResult = PageResult<OrderPageVO[]>;

/**
 * 订单物品分页对象
 */
export interface OrderItemPageVO {
  title: string;
  price: number;
  num: number;
  image: string;
}

/**
 * 订单物品分页类型声明
 */
export type OrderItemPageResult = PageResult<OrderItemPageVO[]>;

/**
 * 商品总订单前端
 */
export interface OrderTotalDto {
  startTime: string;
  endTime: string;
}

/**
 * 商品总订单后端
 */
export interface OrderTotalVO {
  orderDate: string;
  orderCount: number;
}

/**
 * 商品分类订单前端
 */
export interface OrderCategoryTotalDto {
  startTime: string;
  endTime: string;
  select: number;
}

/**
 * 商品分类订单后端
 */
export interface OrderCategoryTotalVO {
  name: string;
  total: number;
}
